package com.zygh.lz.controller.pc;

import com.alibaba.fastjson.JSONObject;
import com.zygh.lz.service.impl.LongFengService;
import com.zygh.lz.stapprove.ResultUtil;
import com.zygh.lz.vo.ResultBean;
import com.zygh.lz.vo.ResultBeans;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: zygh-transform
 * @description: 市局签到记录
 * @author: jhaol
 * @created: 2023/03/30 18:02
 */
@Api(tags = "市局签到记录")
@RestController
public class SignLongFengController {
    @Resource
    LongFengService longFengService;

    @ApiOperation("获取签到记录")
    @GetMapping("getLongFengSign")
    public ResultBean getLongFengSign(Integer current, Integer size, String beginDateTime, String endDateTime, String policeName, String policeCode, Integer onlineStatus) {
        JSONObject sign = longFengService.getSign(current, size, beginDateTime, endDateTime, policeName, policeCode, onlineStatus, null, null);
        return ResultUtil.setOK("success", sign);
    }
}
